package org.zjt.platform.druid.spring.boot.starter;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Arrays;
import java.util.List;

/**
 * @author juntao.zhang
 * @version V1.0
 * @Description: TODO
 * @Package org.zjt.platform.driuddemo.config
 * @date 2018/3/12 21:46
 */
@Data
@ConfigurationProperties(prefix="spring.datasource.monitor")
public class DruidProperties {

    private String loginUserName = "admin";

    private String loginPassword = "juntao.zhang_admin";

    private List<String> allowIp = Arrays.asList("127.0.0.1");

    private List<String> denyIp;

    private List<String> patterns;

    private Integer slowSqlMillis = 3000;

    private String homeUrl = "/druid/*";

    private Boolean springMonitorEnable;
}
